﻿import 'package:star_author/generated/json/base/json_convert_content.dart';
import 'package:star_author/views/stream/model/live_good_list_entity.dart';

LiveGoodListEntity $LiveGoodListEntityFromJson(Map<String, dynamic> json) {
  final LiveGoodListEntity liveGoodListEntity = LiveGoodListEntity();
  final List<LiveGoodListData>? data =
      jsonConvert.convertListNotNull<LiveGoodListData>(json['data']);
  if (data != null) {
    liveGoodListEntity.data = data;
  }
  final LiveGoodListMeta? meta =
      jsonConvert.convert<LiveGoodListMeta>(json['meta']);
  if (meta != null) {
    liveGoodListEntity.meta = meta;
  }
  return liveGoodListEntity;
}

Map<String, dynamic> $LiveGoodListEntityToJson(LiveGoodListEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['data'] = entity.data?.map((v) => v.toJson()).toList();
  data['meta'] = entity.meta?.toJson();
  return data;
}

LiveGoodListData $LiveGoodListDataFromJson(Map<String, dynamic> json) {
  final LiveGoodListData liveGoodListData = LiveGoodListData();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    liveGoodListData.id = id;
  }
  final String? number = jsonConvert.convert<String>(json['number']);
  if (number != null) {
    liveGoodListData.number = number;
  }
  final int? anchorId = jsonConvert.convert<int>(json['anchorId']);
  if (anchorId != null) {
    liveGoodListData.anchorId = anchorId;
  }
  final String? status = jsonConvert.convert<String>(json['status']);
  if (status != null) {
    liveGoodListData.status = status;
  }
  final int? user_normal_level =
      jsonConvert.convert<int>(json['user_normal_level']);
  if (user_normal_level != null) {
    liveGoodListData.user_normal_level = user_normal_level;
  }
  final bool? hasEvaluated = jsonConvert.convert<bool>(json['has_evaluated']);
  if (hasEvaluated != null) {
    liveGoodListData.hasEvaluated = hasEvaluated;
  }
  final int? evaluatedTimeHour =
      jsonConvert.convert<int>(json['evaluated_time_hour']);
  if (evaluatedTimeHour != null) {
    liveGoodListData.evaluatedTimeHour = evaluatedTimeHour;
  }
  final bool? isOwner = jsonConvert.convert<bool>(json['is_owner']);
  if (isOwner != null) {
    liveGoodListData.isOwner = isOwner;
  }
  final bool? immediateSupport =
      jsonConvert.convert<bool>(json['immediate_support']);
  if (immediateSupport != null) {
    liveGoodListData.immediateSupport = immediateSupport;
  }
  final bool? topTarget = jsonConvert.convert<bool>(json['top_target']);
  if (topTarget != null) {
    liveGoodListData.topTarget = topTarget;
  }
  final String? price_range_show_name =
      jsonConvert.convert<String>(json['price_range_show_name']);
  if (price_range_show_name != null) {
    liveGoodListData.price_range_show_name = price_range_show_name;
  }
  final int? stock = jsonConvert.convert<int>(json['stock']);
  if (stock != null) {
    liveGoodListData.stock = stock;
  }
  final String? createdAt = jsonConvert.convert<String>(json['created_at']);
  if (createdAt != null) {
    liveGoodListData.createdAt = createdAt;
  }
  final String? recordingVideo =
      jsonConvert.convert<String>(json['recording_video']);
  if (recordingVideo != null) {
    liveGoodListData.recordingVideo = recordingVideo;
  }
  final String? updatedAt = jsonConvert.convert<String>(json['updated_at']);
  if (updatedAt != null) {
    liveGoodListData.updatedAt = updatedAt;
  }
  final String? firstRequestTime =
      jsonConvert.convert<String>(json['first_request_time']);
  if (firstRequestTime != null) {
    liveGoodListData.firstRequestTime = firstRequestTime;
  }
  final String? evaluatedPrice =
      jsonConvert.convert<String>(json['evaluated_price']);
  if (evaluatedPrice != null) {
    liveGoodListData.evaluatedPrice = evaluatedPrice;
  }
  final String? confirmedPrice =
      jsonConvert.convert<String>(json['confirmed_price']);
  if (confirmedPrice != null) {
    liveGoodListData.confirmedPrice = confirmedPrice;
  }
  final String? onsaleAt = jsonConvert.convert<String>(json['onsale_at']);
  if (onsaleAt != null) {
    liveGoodListData.onsaleAt = onsaleAt;
  }
  final int? approvedEvaluationCount =
      jsonConvert.convert<int>(json['approved_evaluation_count']);
  if (approvedEvaluationCount != null) {
    liveGoodListData.approvedEvaluationCount = approvedEvaluationCount;
  }
  final String? expiredAt = jsonConvert.convert<String>(json['expired_at']);
  if (expiredAt != null) {
    liveGoodListData.expiredAt = expiredAt;
  }
  final int? userId = jsonConvert.convert<int>(json['user_id']);
  if (userId != null) {
    liveGoodListData.userId = userId;
  }
  final String? storeCode = jsonConvert.convert<String>(json['store_code']);
  if (storeCode != null) {
    liveGoodListData.storeCode = storeCode;
  }
  final List<dynamic>? priceRange =
      jsonConvert.convertListNotNull<dynamic>(json['price_range']);
  if (priceRange != null) {
    liveGoodListData.priceRange = priceRange;
  }
  final List<dynamic>? anchorEvaluationPriceRange =
      jsonConvert.convertListNotNull<dynamic>(json['anchor_evaluation']);
  if (anchorEvaluationPriceRange != null) {
    liveGoodListData.anchorEvaluationPriceRange = anchorEvaluationPriceRange;
  }
  final List<dynamic>? appraisalPrice =
      jsonConvert.convertListNotNull<dynamic>(json['appraisal_price']);
  if (appraisalPrice != null) {
    liveGoodListData.appraisalPrice = appraisalPrice;
  }
  final String? rejectedReason =
      jsonConvert.convert<String>(json['rejected_reason']);
  if (rejectedReason != null) {
    liveGoodListData.rejectedReason = rejectedReason;
  }
  final String? comment = jsonConvert.convert<String>(json['comment']);
  if (comment != null) {
    liveGoodListData.comment = comment;
  }
  final String? finishedAt = jsonConvert.convert<String>(json['finished_at']);
  if (finishedAt != null) {
    liveGoodListData.finishedAt = finishedAt;
  }
  final String? anchor_nickname =
      jsonConvert.convert<String>(json['anchor_nickname']);
  if (anchor_nickname != null) {
    liveGoodListData.anchor_nickname = anchor_nickname;
  }
  final String? backflowReceivedAddress =
      jsonConvert.convert<String>(json['backflow_received_address']);
  if (backflowReceivedAddress != null) {
    liveGoodListData.backflowReceivedAddress = backflowReceivedAddress;
  }
  final String? moneyForOwner =
      jsonConvert.convert<String>(json['money_for_owner']);
  if (moneyForOwner != null) {
    liveGoodListData.moneyForOwner = moneyForOwner;
  }
  final int? immediateDiscountPrice =
      jsonConvert.convert<int>(json['immediate_discount_price']);
  if (immediateDiscountPrice != null) {
    liveGoodListData.immediateDiscountPrice = immediateDiscountPrice;
  }
  final int? normalDiscountPrice =
      jsonConvert.convert<int>(json['normal_discount_price']);
  if (normalDiscountPrice != null) {
    liveGoodListData.normalDiscountPrice = normalDiscountPrice;
  }
  final int? limited = jsonConvert.convert<int>(json['limited']);
  if (limited != null) {
    liveGoodListData.limited = limited;
  }
  final String? strategy = jsonConvert.convert<String>(json['strategy']);
  if (strategy != null) {
    liveGoodListData.strategy = strategy;
  }
  final int? tendersCount = jsonConvert.convert<int>(json['tenders_count']);
  if (tendersCount != null) {
    liveGoodListData.tendersCount = tendersCount;
  }
  final String? rateForTender =
      jsonConvert.convert<String>(json['rate_for_tender']);
  if (rateForTender != null) {
    liveGoodListData.rateForTender = rateForTender;
  }
  final String? previewConfirmedPrice =
      jsonConvert.convert<String>(json['preview_confirmed_price']);
  if (previewConfirmedPrice != null) {
    liveGoodListData.previewConfirmedPrice = previewConfirmedPrice;
  }
  final String? backCode = jsonConvert.convert<String>(json['back_code']);
  if (backCode != null) {
    liveGoodListData.backCode = backCode;
  }
  final int? explainingCount =
      jsonConvert.convert<int>(json['explaining_count']);
  if (explainingCount != null) {
    liveGoodListData.explainingCount = explainingCount;
  }
  final String? rateForHitter =
      jsonConvert.convert<String>(json['rate_for_hitter']);
  if (rateForHitter != null) {
    liveGoodListData.rateForHitter = rateForHitter;
  }
  final int? evaluationLimited =
      jsonConvert.convert<int>(json['evaluation_limited']);
  if (evaluationLimited != null) {
    liveGoodListData.evaluationLimited = evaluationLimited;
  }
  final String? takeDownAt = jsonConvert.convert<String>(json['take_down_at']);
  if (takeDownAt != null) {
    liveGoodListData.takeDownAt = takeDownAt;
  }
  final bool? recyclable = jsonConvert.convert<bool>(json['recyclable']);
  if (recyclable != null) {
    liveGoodListData.recyclable = recyclable;
  }
  final bool? isExplained = jsonConvert.convert<bool>(json['is_explained']);
  if (isExplained != null) {
    liveGoodListData.isExplained = isExplained;
  }
  final int? explainerId = jsonConvert.convert<int>(json['explainer_id']);
  if (explainerId != null) {
    liveGoodListData.explainerId = explainerId;
  }
  final bool? isOfflineSaling =
      jsonConvert.convert<bool>(json['is_offline_saling']);
  if (isOfflineSaling != null) {
    liveGoodListData.isOfflineSaling = isOfflineSaling;
  }
  final String? expiredEvaluatedAt =
      jsonConvert.convert<String>(json['expired_evaluated_at']);
  if (expiredEvaluatedAt != null) {
    liveGoodListData.expiredEvaluatedAt = expiredEvaluatedAt;
  }
  final bool? isExpiredEvaluation =
      jsonConvert.convert<bool>(json['is_expired_evaluation']);
  if (isExpiredEvaluation != null) {
    liveGoodListData.isExpiredEvaluation = isExpiredEvaluation;
  }
  final String? evaluatedAt = jsonConvert.convert<String>(json['evaluated_at']);
  if (evaluatedAt != null) {
    liveGoodListData.evaluatedAt = evaluatedAt;
  }
  final int? needTendersCount =
      jsonConvert.convert<int>(json['need_tenders_count']);
  if (needTendersCount != null) {
    liveGoodListData.needTendersCount = needTendersCount;
  }
  final int? alreadyTendersCount =
      jsonConvert.convert<int>(json['already_tenders_count']);
  if (alreadyTendersCount != null) {
    liveGoodListData.alreadyTendersCount = alreadyTendersCount;
  }
  final String? rateForDeductingImmediateCompetitiveStrategy =
      jsonConvert.convert<String>(
          json['rate_for_deducting_immediate_competitive_strategy']);
  if (rateForDeductingImmediateCompetitiveStrategy != null) {
    liveGoodListData.rateForDeductingImmediateCompetitiveStrategy =
        rateForDeductingImmediateCompetitiveStrategy;
  }
  final dynamic? sendBackAt =
      jsonConvert.convert<dynamic>(json['send_back_at']);
  if (sendBackAt != null) {
    liveGoodListData.sendBackAt = sendBackAt;
  }
  final String? backAt = jsonConvert.convert<String>(json['back_at']);
  if (backAt != null) {
    liveGoodListData.backAt = backAt;
  }
  final bool? firstEvaluation =
      jsonConvert.convert<bool>(json['first_evaluation']);
  if (firstEvaluation != null) {
    liveGoodListData.firstEvaluation = firstEvaluation;
  }
  final bool? sonance = jsonConvert.convert<bool>(json['sonance']);
  if (sonance != null) {
    liveGoodListData.sonance = sonance;
  }
  final int? expressLogsId = jsonConvert.convert<int>(json['express_logs_id']);
  if (expressLogsId != null) {
    liveGoodListData.expressLogsId = expressLogsId;
  }
  final String? sentAt = jsonConvert.convert<String>(json['sent_at']);
  if (sentAt != null) {
    liveGoodListData.sentAt = sentAt;
  }
  final String? waitAt = jsonConvert.convert<String>(json['wait_at']);
  if (waitAt != null) {
    liveGoodListData.waitAt = waitAt;
  }
  final String? evaluatedAgainAt =
      jsonConvert.convert<String>(json['evaluated_again_at']);
  if (evaluatedAgainAt != null) {
    liveGoodListData.evaluatedAgainAt = evaluatedAgainAt;
  }
  final LiveGoodListDataGoods? goods =
      jsonConvert.convert<LiveGoodListDataGoods>(json['goods']);
  if (goods != null) {
    liveGoodListData.goods = goods;
  }
  final LiveGoodListDataLogistic? logistic =
      jsonConvert.convert<LiveGoodListDataLogistic>(json['logistic']);
  if (logistic != null) {
    liveGoodListData.logistic = logistic;
  }
  final dynamic? last_history_backflow =
      jsonConvert.convert<dynamic>(json['last_history_backflow']);
  if (last_history_backflow != null) {
    liveGoodListData.last_history_backflow = last_history_backflow;
  }
  final dynamic? backLogistic =
      jsonConvert.convert<dynamic>(json['back_logistic']);
  if (backLogistic != null) {
    liveGoodListData.backLogistic = backLogistic;
  }
  final dynamic? backAddress =
      jsonConvert.convert<dynamic>(json['back_address']);
  if (backAddress != null) {
    liveGoodListData.backAddress = backAddress;
  }
  final dynamic? rating = jsonConvert.convert<dynamic>(json['rating']);
  if (rating != null) {
    liveGoodListData.rating = rating;
  }
  final String? confirmedAt = jsonConvert.convert<String>(json['confirmed_at']);
  if (confirmedAt != null) {
    liveGoodListData.confirmedAt = confirmedAt;
  }
  final dynamic? attachBackAddressAt =
      jsonConvert.convert<dynamic>(json['attach_back_address_at']);
  if (attachBackAddressAt != null) {
    liveGoodListData.attachBackAddressAt = attachBackAddressAt;
  }
  final String? firstEvaluatedAt =
      jsonConvert.convert<String>(json['first_evaluated_at']);
  if (firstEvaluatedAt != null) {
    liveGoodListData.firstEvaluatedAt = firstEvaluatedAt;
  }
  final String? flaw = jsonConvert.convert<String>(json['flaw']);
  if (flaw != null) {
    liveGoodListData.flaw = flaw;
  }
  final double? rateForGuaranteeDeducting =
      jsonConvert.convert<double>(json['rate_for_guarantee_deducting']);
  if (rateForGuaranteeDeducting != null) {
    liveGoodListData.rateForGuaranteeDeducting = rateForGuaranteeDeducting;
  }
  final String? previousMaxTenderPrice =
      jsonConvert.convert<String>(json['previous_max_tender_price']);
  if (previousMaxTenderPrice != null) {
    liveGoodListData.previousMaxTenderPrice = previousMaxTenderPrice;
  }
  final bool? isImmediate = jsonConvert.convert<bool>(json['is_immediate']);
  if (isImmediate != null) {
    liveGoodListData.isImmediate = isImmediate;
  }
  final bool? isSpecialOffer =
      jsonConvert.convert<bool>(json['is_special_offer']);
  if (isSpecialOffer != null) {
    liveGoodListData.isSpecialOffer = isSpecialOffer;
  }
  final bool? canOnsaleAgain =
      jsonConvert.convert<bool>(json['can_onsale_again']);
  if (canOnsaleAgain != null) {
    liveGoodListData.canOnsaleAgain = canOnsaleAgain;
  }
  final bool? canEvaluatedAgain =
      jsonConvert.convert<bool>(json['can_evaluated_again']);
  if (canEvaluatedAgain != null) {
    liveGoodListData.canEvaluatedAgain = canEvaluatedAgain;
  }
  final bool? canOnsaleFromBack =
      jsonConvert.convert<bool>(json['can_onsale_from_back']);
  if (canOnsaleFromBack != null) {
    liveGoodListData.canOnsaleFromBack = canOnsaleFromBack;
  }
  final int? kloneId = jsonConvert.convert<int>(json['klone_id']);
  if (kloneId != null) {
    liveGoodListData.kloneId = kloneId;
  }
  final dynamic? originalId = jsonConvert.convert<dynamic>(json['original_id']);
  if (originalId != null) {
    liveGoodListData.originalId = originalId;
  }
  final dynamic? tenderPrice =
      jsonConvert.convert<dynamic>(json['tender_price']);
  if (tenderPrice != null) {
    liveGoodListData.tenderPrice = tenderPrice;
  }
  final bool? shopped = jsonConvert.convert<bool>(json['shopped']);
  if (shopped != null) {
    liveGoodListData.shopped = shopped;
  }
  final bool? canOnsaleFromClosed =
      jsonConvert.convert<bool>(json['can_onsale_from_closed']);
  if (canOnsaleFromClosed != null) {
    liveGoodListData.canOnsaleFromClosed = canOnsaleFromClosed;
  }
  final String? illustration =
      jsonConvert.convert<String>(json['illustration']);
  if (illustration != null) {
    liveGoodListData.illustration = illustration;
  }
  final String? rateForDeducting =
      jsonConvert.convert<String>(json['rate_for_deducting']);
  if (rateForDeducting != null) {
    liveGoodListData.rateForDeducting = rateForDeducting;
  }
  final String? cover = jsonConvert.convert<String>(json['cover']);
  if (cover != null) {
    liveGoodListData.cover = cover;
  }
  final LiveGoodListDataWinningOrder? winningOrder =
      jsonConvert.convert<LiveGoodListDataWinningOrder>(json['winning_order']);
  if (winningOrder != null) {
    liveGoodListData.winningOrder = winningOrder;
  }
  final bool? isRequested = jsonConvert.convert<bool>(json['is_requested']);
  if (isRequested != null) {
    liveGoodListData.isRequested = isRequested;
  }
  final String? moneyForHitter =
      jsonConvert.convert<String>(json['money_for_hitter']);
  if (moneyForHitter != null) {
    liveGoodListData.moneyForHitter = moneyForHitter;
  }
  final String? moneyForPlatform =
      jsonConvert.convert<String>(json['money_for_platform']);
  if (moneyForPlatform != null) {
    liveGoodListData.moneyForPlatform = moneyForPlatform;
  }
  final bool? show_price_options =
      jsonConvert.convert<bool>(json['show_price_options']);
  if (show_price_options != null) {
    liveGoodListData.show_price_options = show_price_options;
  }
  final bool? start_explaining =
      jsonConvert.convert<bool>(json['start_explaining']);
  if (start_explaining != null) {
    liveGoodListData.start_explaining = start_explaining;
  }
  return liveGoodListData;
}

Map<String, dynamic> $LiveGoodListDataToJson(LiveGoodListData entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['number'] = entity.number;
  data['anchorId'] = entity.anchorId;
  data['status'] = entity.status;
  data['user_normal_level'] = entity.user_normal_level;
  data['has_evaluated'] = entity.hasEvaluated;
  data['evaluated_time_hour'] = entity.evaluatedTimeHour;
  data['is_owner'] = entity.isOwner;
  data['immediate_support'] = entity.immediateSupport;
  data['top_target'] = entity.topTarget;
  data['price_range_show_name'] = entity.price_range_show_name;
  data['stock'] = entity.stock;
  data['created_at'] = entity.createdAt;
  data['recording_video'] = entity.recordingVideo;
  data['updated_at'] = entity.updatedAt;
  data['first_request_time'] = entity.firstRequestTime;
  data['evaluated_price'] = entity.evaluatedPrice;
  data['confirmed_price'] = entity.confirmedPrice;
  data['onsale_at'] = entity.onsaleAt;
  data['approved_evaluation_count'] = entity.approvedEvaluationCount;
  data['expired_at'] = entity.expiredAt;
  data['user_id'] = entity.userId;
  data['store_code'] = entity.storeCode;
  data['price_range'] = entity.priceRange;
  data['anchor_evaluation'] = entity.anchorEvaluationPriceRange;
  data['appraisal_price'] = entity.appraisalPrice;
  data['rejected_reason'] = entity.rejectedReason;
  data['comment'] = entity.comment;
  data['finished_at'] = entity.finishedAt;
  data['anchor_nickname'] = entity.anchor_nickname;
  data['backflow_received_address'] = entity.backflowReceivedAddress;
  data['money_for_owner'] = entity.moneyForOwner;
  data['immediate_discount_price'] = entity.immediateDiscountPrice;
  data['normal_discount_price'] = entity.normalDiscountPrice;
  data['limited'] = entity.limited;
  data['strategy'] = entity.strategy;
  data['tenders_count'] = entity.tendersCount;
  data['rate_for_tender'] = entity.rateForTender;
  data['preview_confirmed_price'] = entity.previewConfirmedPrice;
  data['back_code'] = entity.backCode;
  data['explaining_count'] = entity.explainingCount;
  data['rate_for_hitter'] = entity.rateForHitter;
  data['evaluation_limited'] = entity.evaluationLimited;
  data['take_down_at'] = entity.takeDownAt;
  data['recyclable'] = entity.recyclable;
  data['is_explained'] = entity.isExplained;
  data['explainer_id'] = entity.explainerId;
  data['is_offline_saling'] = entity.isOfflineSaling;
  data['expired_evaluated_at'] = entity.expiredEvaluatedAt;
  data['is_expired_evaluation'] = entity.isExpiredEvaluation;
  data['evaluated_at'] = entity.evaluatedAt;
  data['need_tenders_count'] = entity.needTendersCount;
  data['already_tenders_count'] = entity.alreadyTendersCount;
  data['rate_for_deducting_immediate_competitive_strategy'] =
      entity.rateForDeductingImmediateCompetitiveStrategy;
  data['send_back_at'] = entity.sendBackAt;
  data['back_at'] = entity.backAt;
  data['first_evaluation'] = entity.firstEvaluation;
  data['sonance'] = entity.sonance;
  data['express_logs_id'] = entity.expressLogsId;
  data['sent_at'] = entity.sentAt;
  data['wait_at'] = entity.waitAt;
  data['evaluated_again_at'] = entity.evaluatedAgainAt;
  data['goods'] = entity.goods?.toJson();
  data['logistic'] = entity.logistic?.toJson();
  data['last_history_backflow'] = entity.last_history_backflow;
  data['back_logistic'] = entity.backLogistic;
  data['back_address'] = entity.backAddress;
  data['rating'] = entity.rating;
  data['confirmed_at'] = entity.confirmedAt;
  data['attach_back_address_at'] = entity.attachBackAddressAt;
  data['first_evaluated_at'] = entity.firstEvaluatedAt;
  data['flaw'] = entity.flaw;
  data['rate_for_guarantee_deducting'] = entity.rateForGuaranteeDeducting;
  data['previous_max_tender_price'] = entity.previousMaxTenderPrice;
  data['is_immediate'] = entity.isImmediate;
  data['is_special_offer'] = entity.isSpecialOffer;
  data['can_onsale_again'] = entity.canOnsaleAgain;
  data['can_evaluated_again'] = entity.canEvaluatedAgain;
  data['can_onsale_from_back'] = entity.canOnsaleFromBack;
  data['klone_id'] = entity.kloneId;
  data['original_id'] = entity.originalId;
  data['tender_price'] = entity.tenderPrice;
  data['shopped'] = entity.shopped;
  data['can_onsale_from_closed'] = entity.canOnsaleFromClosed;
  data['illustration'] = entity.illustration;
  data['rate_for_deducting'] = entity.rateForDeducting;
  data['cover'] = entity.cover;
  data['winning_order'] = entity.winningOrder?.toJson();
  data['is_requested'] = entity.isRequested;
  data['money_for_hitter'] = entity.moneyForHitter;
  data['money_for_platform'] = entity.moneyForPlatform;
  data['show_price_options'] = entity.show_price_options;
  data['start_explaining'] = entity.start_explaining;
  return data;
}

LiveGoodListDataGoods $LiveGoodListDataGoodsFromJson(
    Map<String, dynamic> json) {
  final LiveGoodListDataGoods liveGoodListDataGoods = LiveGoodListDataGoods();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    liveGoodListDataGoods.id = id;
  }
  final String? serial = jsonConvert.convert<String>(json['serial']);
  if (serial != null) {
    liveGoodListDataGoods.serial = serial;
  }
  final String? description = jsonConvert.convert<String>(json['description']);
  if (description != null) {
    liveGoodListDataGoods.description = description;
  }
  final String? createdAt = jsonConvert.convert<String>(json['created_at']);
  if (createdAt != null) {
    liveGoodListDataGoods.createdAt = createdAt;
  }
  final String? updatedAt = jsonConvert.convert<String>(json['updated_at']);
  if (updatedAt != null) {
    liveGoodListDataGoods.updatedAt = updatedAt;
  }
  final String? firstRequestTime =
      jsonConvert.convert<String>(json['first_request_time']);
  if (firstRequestTime != null) {
    liveGoodListDataGoods.firstRequestTime = firstRequestTime;
  }
  final String? weight = jsonConvert.convert<String>(json['weight']);
  if (weight != null) {
    liveGoodListDataGoods.weight = weight;
  }
  final String? texture = jsonConvert.convert<String>(json['texture']);
  if (texture != null) {
    liveGoodListDataGoods.texture = texture;
  }
  final dynamic? circle = jsonConvert.convert<dynamic>(json['circle']);
  if (circle != null) {
    liveGoodListDataGoods.circle = circle;
  }
  final int? count = jsonConvert.convert<int>(json['count']);
  if (count != null) {
    liveGoodListDataGoods.count = count;
  }
  final String? certificate = jsonConvert.convert<String>(json['certificate']);
  if (certificate != null) {
    liveGoodListDataGoods.certificate = certificate;
  }
  final String? specification =
      jsonConvert.convert<String>(json['specification']);
  if (specification != null) {
    liveGoodListDataGoods.specification = specification;
  }
  final String? title = jsonConvert.convert<String>(json['title']);
  if (title != null) {
    liveGoodListDataGoods.title = title;
  }
  final String? category = jsonConvert.convert<String>(json['category']);
  if (category != null) {
    liveGoodListDataGoods.category = category;
  }
  final String? category_prefix =
      jsonConvert.convert<String>(json['category_prefix']);
  if (category_prefix != null) {
    liveGoodListDataGoods.category_prefix = category_prefix;
  }
  final int? categoryId = jsonConvert.convert<int>(json['category_id']);
  if (categoryId != null) {
    liveGoodListDataGoods.categoryId = categoryId;
  }
  final int? certificatePrice =
      jsonConvert.convert<int>(json['certificate_price']);
  if (certificatePrice != null) {
    liveGoodListDataGoods.certificatePrice = certificatePrice;
  }
  final LiveGoodListDataGoodsCover? cover =
      jsonConvert.convert<LiveGoodListDataGoodsCover>(json['cover']);
  if (cover != null) {
    liveGoodListDataGoods.cover = cover;
  }
  return liveGoodListDataGoods;
}

Map<String, dynamic> $LiveGoodListDataGoodsToJson(
    LiveGoodListDataGoods entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['serial'] = entity.serial;
  data['description'] = entity.description;
  data['created_at'] = entity.createdAt;
  data['updated_at'] = entity.updatedAt;
  data['first_request_time'] = entity.firstRequestTime;
  data['weight'] = entity.weight;
  data['texture'] = entity.texture;
  data['circle'] = entity.circle;
  data['count'] = entity.count;
  data['certificate'] = entity.certificate;
  data['specification'] = entity.specification;
  data['title'] = entity.title;
  data['category'] = entity.category;
  data['category_prefix'] = entity.category_prefix;
  data['category_id'] = entity.categoryId;
  data['certificate_price'] = entity.certificatePrice;
  data['cover'] = entity.cover?.toJson();
  return data;
}

LiveGoodListDataGoodsCover $LiveGoodListDataGoodsCoverFromJson(
    Map<String, dynamic> json) {
  final LiveGoodListDataGoodsCover liveGoodListDataGoodsCover =
      LiveGoodListDataGoodsCover();
  final String? url = jsonConvert.convert<String>(json['url']);
  if (url != null) {
    liveGoodListDataGoodsCover.url = url;
  }
  final int? width = jsonConvert.convert<int>(json['width']);
  if (width != null) {
    liveGoodListDataGoodsCover.width = width;
  }
  final int? height = jsonConvert.convert<int>(json['height']);
  if (height != null) {
    liveGoodListDataGoodsCover.height = height;
  }
  return liveGoodListDataGoodsCover;
}

Map<String, dynamic> $LiveGoodListDataGoodsCoverToJson(
    LiveGoodListDataGoodsCover entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['url'] = entity.url;
  data['width'] = entity.width;
  data['height'] = entity.height;
  return data;
}

LiveGoodListDataLogistic $LiveGoodListDataLogisticFromJson(
    Map<String, dynamic> json) {
  final LiveGoodListDataLogistic liveGoodListDataLogistic =
      LiveGoodListDataLogistic();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    liveGoodListDataLogistic.id = id;
  }
  final String? no = jsonConvert.convert<String>(json['no']);
  if (no != null) {
    liveGoodListDataLogistic.no = no;
  }
  final String? companyName = jsonConvert.convert<String>(json['company_name']);
  if (companyName != null) {
    liveGoodListDataLogistic.companyName = companyName;
  }
  final String? company = jsonConvert.convert<String>(json['company']);
  if (company != null) {
    liveGoodListDataLogistic.company = company;
  }
  final String? createdAt = jsonConvert.convert<String>(json['created_at']);
  if (createdAt != null) {
    liveGoodListDataLogistic.createdAt = createdAt;
  }
  return liveGoodListDataLogistic;
}

Map<String, dynamic> $LiveGoodListDataLogisticToJson(
    LiveGoodListDataLogistic entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['no'] = entity.no;
  data['company_name'] = entity.companyName;
  data['company'] = entity.company;
  data['created_at'] = entity.createdAt;
  return data;
}

LiveGoodListDataWinningOrder $LiveGoodListDataWinningOrderFromJson(
    Map<String, dynamic> json) {
  final LiveGoodListDataWinningOrder liveGoodListDataWinningOrder =
      LiveGoodListDataWinningOrder();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    liveGoodListDataWinningOrder.id = id;
  }
  final int? userId = jsonConvert.convert<int>(json['user_id']);
  if (userId != null) {
    liveGoodListDataWinningOrder.userId = userId;
  }
  final String? status = jsonConvert.convert<String>(json['status']);
  if (status != null) {
    liveGoodListDataWinningOrder.status = status;
  }
  final String? expectedDeductGuaranteeAt =
      jsonConvert.convert<String>(json['expected_deduct_guarantee_at']);
  if (expectedDeductGuaranteeAt != null) {
    liveGoodListDataWinningOrder.expectedDeductGuaranteeAt =
        expectedDeductGuaranteeAt;
  }
  return liveGoodListDataWinningOrder;
}

Map<String, dynamic> $LiveGoodListDataWinningOrderToJson(
    LiveGoodListDataWinningOrder entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['user_id'] = entity.userId;
  data['status'] = entity.status;
  data['expected_deduct_guarantee_at'] = entity.expectedDeductGuaranteeAt;
  return data;
}

LiveGoodListMeta $LiveGoodListMetaFromJson(Map<String, dynamic> json) {
  final LiveGoodListMeta liveGoodListMeta = LiveGoodListMeta();
  final int? totalPages = jsonConvert.convert<int>(json['total_pages']);
  if (totalPages != null) {
    liveGoodListMeta.totalPages = totalPages;
  }
  final int? currentPage = jsonConvert.convert<int>(json['current_page']);
  if (currentPage != null) {
    liveGoodListMeta.currentPage = currentPage;
  }
  final int? totalCount = jsonConvert.convert<int>(json['total_count']);
  if (totalCount != null) {
    liveGoodListMeta.totalCount = totalCount;
  }
  return liveGoodListMeta;
}

Map<String, dynamic> $LiveGoodListMetaToJson(LiveGoodListMeta entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['total_pages'] = entity.totalPages;
  data['current_page'] = entity.currentPage;
  data['total_count'] = entity.totalCount;
  return data;
}
